function prev(_this) {
	var url = _this.getAttribute("url");
	var page = _this.getAttribute("page") * 1;
	var list = "#" + _this.getAttribute("list");
    var data = _this.getAttribute("data");
	var totalPage = _this.getAttribute("totalPage");
	
	if(page<=1) return;
	
    $("#loading").html("数据加载中,请稍候...");
	$.ajax( {
		type : "post",
		url : url,
		data : "page=" + (page-1) + (data == null ? '' : data) + "&s="+ Math.random(),
		success : function(data) {
			$(list).html(data);
            $("#loading").html("");
		},
		error : function() {
		}

	});
}

function next(_this) {
	
	var url = _this.getAttribute("url");
	var page = _this.getAttribute("page") * 1;
	var list = "#" + _this.getAttribute("list");
	var data = _this.getAttribute("data");
	var totalPage = _this.getAttribute("totalPage") * 1;
	if(page>=totalPage) return;
	
    $("#loading").html("数据加载中,请稍候...");
	$.ajax( {
		type : "post",
		url : url,
		data : "page=" + (page+1) + (data == null ? "" : data) + "&s="+ Math.random(),
		success : function(data) {
			$(list).html(data);
            $("#loading").html("");
		},
		error : function() {
		}

	});
}


function gotoUrl(_this) {
	var url = _this.getAttribute("url");
	var list = "#" + _this.getAttribute("list");
	var data = _this.getAttribute("data");
	$.ajax( {
		type : "post",
		url : url,
		data : "s="+ Math.random()+ (data == null ? "" : data) ,
		success : function(data) {
			$(list).html(data);
		},
		error : function() {
		}

	});
}
